<?php

namespace IDock\Insurance\DBIC\Response;

use IDock\Http\Response;
use IDock\Printer\PolicyPaymentPrinter;

class PolicyPaymentResponse extends AllDBICResponse
{
    /**
     * @var PolicyPaymentPrinter $printer
     */
    public $printer = PolicyPaymentPrinter::class;

    public function printerInit(): Response
    {
        $this->printer->payUrl = $this->getRecords(0)['JUMPURL'] ?? '';
        return $this;
    }
}